import { TConfig } from "./TConfig";


export interface StoreCfg extends IConfig {id:number;name:string;type:number;commodity:number[];pay:number;advPrice:number;advDiscount:number;diamondPrice:number;diamondDiscount:number;frequency:number;freeTime:number;firstAward:number;cashPrice:number;}



export class StoreCfgReader extends TConfig<StoreCfg> {
    protected _name : string = "Store";

    public constructor() {
        super();
        this.initByMap({
    "1": {
        "id": 1,
        "name": "白银宝箱",
        "type": 1,
        "commodity": [
            3001,
            3002,
            3003,
            3004,
            3005,
            3006
        ],
        "pay": 1,
        "advPrice": 1,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": 5,
        "freeTime": 10800,
        "firstAward": 0,
        "cashPrice": 0
    },
    "2": {
        "id": 2,
        "name": "紫金宝箱",
        "type": 1,
        "commodity": [
            4001,
            4002,
            4003,
            4004,
            4005,
            4006
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 388,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 259200,
        "firstAward": 0,
        "cashPrice": 0
    },
    "3": {
        "id": 3,
        "name": "小堆金币",
        "type": 2,
        "commodity": [
            500,
            600,
            720,
            880,
            1080,
            1380
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 38,
        "diamondDiscount": 0,
        "frequency": 3,
        "freeTime": 0,
        "firstAward": 0,
        "cashPrice": 0
    },
    "4": {
        "id": 4,
        "name": "大堆金币",
        "type": 2,
        "commodity": [
            1200,
            1500,
            1800,
            2200,
            2800,
            3380
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 68,
        "diamondDiscount": 0,
        "frequency": 3,
        "freeTime": 0,
        "firstAward": 0,
        "cashPrice": 0
    },
    "5": {
        "id": 5,
        "name": "大箱金币",
        "type": 2,
        "commodity": [
            5000,
            6000,
            7200,
            8800,
            10800,
            13800
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 188,
        "diamondDiscount": 0,
        "frequency": 3,
        "freeTime": 0,
        "firstAward": 0,
        "cashPrice": 0
    },
    "6": {
        "id": 6,
        "name": "少量体力",
        "type": 3,
        "commodity": [
            5
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 50,
        "diamondDiscount": 0,
        "frequency": 3,
        "freeTime": 0,
        "firstAward": 0,
        "cashPrice": 0
    },
    "7": {
        "id": 7,
        "name": "大量体力",
        "type": 3,
        "commodity": [
            10
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 98,
        "diamondDiscount": 0,
        "frequency": 2,
        "freeTime": 0,
        "firstAward": 0,
        "cashPrice": 0
    },
    "8": {
        "id": 8,
        "name": "超量体力",
        "type": 3,
        "commodity": [
            25
        ],
        "pay": 2,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 238,
        "diamondDiscount": 0,
        "frequency": 1,
        "freeTime": 0,
        "firstAward": 0,
        "cashPrice": 0
    },
    "9": {
        "id": 9,
        "name": "100钻石",
        "type": 4,
        "commodity": [
            100
        ],
        "pay": 3,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 0,
        "firstAward": 10,
        "cashPrice": 6
    },
    "10": {
        "id": 10,
        "name": "200钻石",
        "type": 4,
        "commodity": [
            550
        ],
        "pay": 3,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 0,
        "firstAward": 20,
        "cashPrice": 30
    },
    "11": {
        "id": 11,
        "name": "300钻石",
        "type": 4,
        "commodity": [
            1880
        ],
        "pay": 3,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 0,
        "firstAward": 30,
        "cashPrice": 98
    },
    "12": {
        "id": 12,
        "name": "400钻石",
        "type": 4,
        "commodity": [
            4080
        ],
        "pay": 3,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 0,
        "firstAward": 40,
        "cashPrice": 198
    },
    "13": {
        "id": 13,
        "name": "500钻石",
        "type": 4,
        "commodity": [
            7200
        ],
        "pay": 3,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 0,
        "firstAward": 50,
        "cashPrice": 328
    },
    "14": {
        "id": 14,
        "name": "600钻石",
        "type": 4,
        "commodity": [
            15880
        ],
        "pay": 3,
        "advPrice": 0,
        "advDiscount": 0,
        "diamondPrice": 0,
        "diamondDiscount": 0,
        "frequency": -1,
        "freeTime": 0,
        "firstAward": 60,
        "cashPrice": 648
    }
});
    }
}